package com.cocotingo.snail.template;

import com.cocotingo.snail.template.models.Node;

public class TemplateSyntaxException extends Exception {
	
	private static final long serialVersionUID = -792788227325803473L;
	private final Node node;

	public TemplateSyntaxException(Node node) {
		super();
		this.node = node;
	}
	
	public TemplateSyntaxException(Node node, String msg) {
		super(msg);
		this.node = node;
	}
	
	public TemplateSyntaxException(Node node, Throwable cause) {
		super(cause);
		this.node = node;
	}
	
	public TemplateSyntaxException(Node node, String msg, Throwable cause) {
		super(msg, cause);
		this.node = node;
	}
	
	public Node getNode() {
		return node;
	}

}
